/*任务节点*/
.task-node,
.task-item{
  display: flex;
  flex-direction: column;
  width: 230px;
  height: 90px;
}

.task-node .num {
  height: 30px;
  line-height: 30px;
  font-weight: bold;
}

.task-node .body,
.task-item .body{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  height: 60px;
  background: white;
  color: var(--primary);
  border-radius: 5px;
}

.task-node .icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--primary);
  color: white;
}

.task-item .icon span,
.task-node .icon span {
  font-size: 24px;
}

.task-item .name,
.task-node .name {
  flex: 1;
  padding: 0 20px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: bold;
}

.task-item .btn,
.task-node .btn {
  font-size: 12px;
}

/* 初始化 */
.task-node.init .num {
  color: #929aad;
}
.task-node.init .body{
  background: #f6f7fb;
  border: dashed 1px #9da5b6;
}

.task-node.init .icon {
  background: #929aad;
}

.task-node.init .name {
  color: #929aad;
}

/*任务*/
.task-item {
  height: 60px;
}

.task-item .body {
  padding: 0;
  height: 100%;
}

.task-item .icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 100%;
  border-right: dashed 1px #b8bdca;
}

.task-item .btn {
  padding-right: 10px;
}

.task-item.hidden {
  display: none;
}

/*任务初始化*/

.task-item.init .body{
  background: var(--bg);
  border: dashed 1px #b8bdca;
}

.task-item.init .name,
.task-item.init .icon{
  color: #9ba2b4;
}

/* 展开/收缩 */
.expand-node {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 22px;
  border: solid 1px var(--primary);
  color: var(--primary);
  font-size: 12px;
  border-radius: 5px;
  background: var(--bg);
}